package jp.co.technotree.common.dao;

public class ConnectInfo {
	public int index = -1;
	public String driver = null;
	public String url = null;
	public String dbName = null;
	public String type = null;
	public String userName = null;
	public String password = null;
	public String prio = null;
	public long disableExpires = 0;
	public boolean enable = false;
	public boolean isMaster = false;
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("CONNECT INFO:\n");
		sb.append("    index:"+index+"\n");
		sb.append("      url:"+url+"\n");
		sb.append("   driver:"+driver+"\n");
		sb.append("   dbName:"+dbName+"\n");
		sb.append("     type:"+type+"\n");
		sb.append(" userName:"+userName+"\n");
		sb.append(" password:"+password+"\n");
		sb.append("     prio:"+prio+"\n");
		return sb.toString();
	}
}
